/**
 * @Author lizhenchao@atguigu.cn
 * @Date 2020/12/19 15:43
 */
public class Methods {
    public static void main(String[] args) {
        foo(User::new);
    }

    public static void foo(UserFunction user) {
        user.f();
    }


    public interface UserFunction {
        void f();
    }

    public static class User{

    }

}
